package com.stylefeng.guns.rest.modular.App.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper=true)
@TableName("order_type")
 /**
 * 线路类型
 *
 * @author sasazaixian
 * @Date 2018-11-15 14:16
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class OrderType extends Model<OrderType> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "ot_id", type = IdType.UUID)
    @ApiModelProperty(value = "线路类型Id")
    @TableField("ot_id")
    private Integer otId;     //
    @Override
    protected Serializable pkVal() {
        return this.otId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;
	
    public void setKey(String key) {
		this.key = key;
	}
	public String getKey() {
		return key;
	}	
	public void setSortField(String sortField) {
		this.sortField = sortField;
	}
	public String getSortField() {
		return sortField;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setEdate(String edate) {
		this.edate = edate;
	}
	public String getEdate() {
		return edate;
	}
	public void setSdate(String sdate) {
		this.sdate = sdate;
	}
	public String getSdate() {
		return sdate;
	}	
	
	


    @ApiModelProperty(value = "线路类型名称")
    @TableField("ot_name")
    private String otName;     //

    @ApiModelProperty(value = "线路类型Code")
    @TableField("ot_code")
    private String otCode;     //

    @ApiModelProperty(value = "类型分类：0订单类型（ 城际（CJ)/机场专线（JC））1 服务分类 （0（送）1（接））2 服务类型（0(专)/1(快车)）")
    @TableField("ot_type")
    private String otType;     //类型分类：0订单类型（ 城际（CJ)/机场专线（JC））1 服务分类 （0（送）1（接））2 服务类型（0(专)/1(快车)）

    public Integer getOtId(){
        return otId;
    }
    public void setOtId(Integer otId){
        this.otId=otId;
    }
    public String getOtName(){
        return otName;
    }
    public void setOtName(String otName){
        this.otName=otName;
    }
    public String getOtCode(){
        return otCode;
    }
    public void setOtCode(String otCode){
        this.otCode=otCode;
    }
    public String getOtType(){
        return otType;
    }
    public void setOtType(String otType){
        this.otType=otType;
    }

}
